package com.heima.TemplateMethodExample;

public abstract class Template {
    public void head(){
        System.out.println("我是头部");
    }

    public abstract void  body();

    public void foot(){
        System.out.println("我是尾部");
    }

    public final void write(){
        head();
        body();
        foot();
    }
}
